package com.rxh.mapper.core;

import com.rxh.mapper.base.BaseMapper;
import com.rxh.pojo.core.CoreTradeRate;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface CoreTradeRateMapper extends BaseMapper<CoreTradeRate, Long> {
    
    BigDecimal selectByTradeInfo(@Param("type") Short type, @Param("sourceCurrency") String sourceCurrency, @Param("targetCurrency") String targetCurrency);

	int deleteByParam(Map<String, Object> param);

	CoreTradeRate selectByParam(CoreTradeRate entity);

	int getTradeAllResultCount(Map<String, Object> paramMap);

	List<CoreTradeRate> selectAll();
}